/**
 * &copy; 2006 NewInstance.it
 */
package it.newinstance.jrainbow.parser.java;

import it.newinstance.jrainbow.source.Tag;

/**
 * @author Luigi R. Viggiano
 * @version $Id: JavaTag.java 138 2007-06-12 12:23:29Z luigi.viggiano $
 */
public enum JavaTag implements Tag {
    STRING_CONSTANT, 
    CHAR_CONSTANT, 
    NUMERIC_CONSTANT, 
    PARENTHESIS,      
    CODE,
    JAVA_KEYWORD,
    JAVA_PRIMITIVE_TYPE,
    JAVA_ANNOTATION,    
    COMMENT_BLOCK,
    COMMENT_LINE, 
    COMMENT_TASK_TAG,
    JAVADOC, 
    JAVADOC_KEYWORD,
    JAVADOC_HTML_TAG,
    
    ;
    
    public static boolean isCommentContext(Tag tag) {
        return tag == JavaTag.JAVADOC ||
               tag == JavaTag.COMMENT_BLOCK ||
               tag == JavaTag.COMMENT_LINE;
    }    
}
